<template>
<div>
  <div>
    <h1>{{this.$store.state.count}}</h1>
    <el-button @click="add_count">add</el-button>

  </div>
</div>
</template>

<script>
export default {
name: "count",
data(){
  return{

  }
},
methods:{
  add_count(){
    this.$store.commit('increment');
  }
}



}
</script>

<style scoped>

</style>
